package com.tests.dto
{
	public class A
	{
		public const PEDRO:String = "PEDRO";
		public var VARELA:String;
		public function A()
		{
			VARELA = "varela";
			var myNum:Number = 3;
			typeTest(myNum);
		}
		
		public function GETTHEM():String{
			return PEDRO + VARELA + dynamicTest(3);
		}

		function typeTest(xParam:Array)
			{
			    trace(xParam);
			}

		private function dynamicTest(xParam):*
			{
			    if (xParam is String)
			    {
			        var myStr:String = xParam; // compiler error in strict mode
			        trace("String: " + myStr);
			        return myStr;
			    }
			    else if (xParam is Number)
			    {
			        var myNum:Number = xParam; // compiler error in strict mode
			        trace("Number: " + myNum);
			        return myNum;
			    }
			}


	}
}